package com.example.demo.lab2.mapper;

import com.example.demo.lab2.entity.DepWithEmp;
import com.example.demo.lab2.entity.Departments;
import org.apache.ibatis.annotations.Mapper;

import java.math.BigDecimal;
import java.util.List;

@Mapper
public interface DepartmentsMapper {
    int insert(Departments department);

    int delete(BigDecimal id);

    int update(Departments department);

    List<Departments> list();

    List<DepWithEmp> listWithEmp();
}
